package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Lenovo on 2017/12/8.
 */
@Entity
@Table(name = "T_SYS_REGION_2_PROVINCE", schema = "oa", catalog = "")
public class Region2ProvinceEntity extends BaseEntity {
    private String regionId;
    private String provinceId;

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("ID",this.getId());
        json.put("REGION_ID",this.getRegionId());
        json.put("PROVINCE_ID",this.getProvinceId());
        return json;
    }
    @Override
    public String getTableName() {
        return "T_SYS_REGION_2_PROVINCE";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("REGION_ID","regionId");
        json.put("PROVINCE_ID","provinceId");
        return json;
    }
}
